package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;

/*交付计划详情*/

@Entity
public class Jiaofujihuaxiangqing {
    private int jfjhxqId;//交付计划详情id
    private Productt productt;//产品(详情)id
    private Integer jfjhxqNum;//交付计划详情产品数量
    private BigDecimal jfjhxqPrice;//交付计划详情产品价格
    private Jiaofujihua jiaofujihuaByJjId;//交付计划对象（交付计划id）
    private BigDecimal jfjhXiaoJi;//交计产品小计

    @Basic
    @Column(name = "jfjh_xiaoji")
    public BigDecimal getJfjhXiaoJi() {
        return jfjhXiaoJi;
    }

    public void setJfjhXiaoJi(BigDecimal jfjhXiaoJi) {
        this.jfjhXiaoJi = jfjhXiaoJi;
    }

    @Id
    @Column(name = "jfjhxq_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getJfjhxqId() {
        return jfjhxqId;
    }

    public void setJfjhxqId(int jfjhxqId) {
        this.jfjhxqId = jfjhxqId;
    }

    @ManyToOne
    @JoinColumn(name = "productt_id", referencedColumnName = "productt_id")
    public Productt getProductt() {
        return productt;
    }

    public void setProductt(Productt productt) {
        this.productt = productt;
    }



    @Basic
    @Column(name = "jfjhxq_num", nullable = true, precision = 0)
    public Integer getJfjhxqNum() {
        return jfjhxqNum;
    }

    public void setJfjhxqNum(Integer jfjhxqNum) {
        this.jfjhxqNum = jfjhxqNum;
    }

    @Basic
    @Column(name = "jfjhxq_price", nullable = true, precision = 2)
    public BigDecimal getJfjhxqPrice() {
        return jfjhxqPrice;
    }

    public void setJfjhxqPrice(BigDecimal jfjhxqPrice) {
        this.jfjhxqPrice = jfjhxqPrice;
    }

    @ManyToOne
    @JoinColumn(name = "jj_id", referencedColumnName = "jj_id")
    public Jiaofujihua getJiaofujihuaByJjId() {
        return jiaofujihuaByJjId;
    }

    public void setJiaofujihuaByJjId(Jiaofujihua jiaofujihuaByJjId) {
        this.jiaofujihuaByJjId = jiaofujihuaByJjId;
    }
}
